<?php
/**
 * View Elenco Eventi FULL LaFabbrica.org
 * 
 * @author     luigi.pastore (gigi@la-fabbrica.org)
 * @created    17-mag-2011
 * @package    LaFabbrica
 * @copyright  Copyright (c) 2011 Luigi Pastore
 */
?>
<?php
if(  count( $this->events ) ):
    foreach( $this->events AS $event ) : ?>
	<tr class="selectable <?php echo ( in_array( $event['event_id'], (array)$this->selected ) ? 'selected' : '' ) ?>" id="event_<?php echo $event['event_id'] ?>" id="<?php echo $event['event_id'] ?>">
	    <th># <?php echo $event['event_id'] ?></th>
	    <td class="title">
		<?php echo $event['event_title'] ?>	
	    </td>
	    <td>
		<?php echo $event['event_type_name'] ?>	
	    </td>
  
	    <td title="Selezionata" class="status">
		<input class="hidden" type="checkbox" name="events[]" id="event_check_<?php echo $event['event_id'] ?>" value="<?php echo $event['event_id'] ?>" <?php echo ( in_array( $event['event_id'], (array)$this->selected ) ? 'checked="checked"' : '' ) ?> />
	    </td>
	</tr>
<?php endforeach;
else:
    ?><tr class="result"><td colspan="5">Nessun elemento presente...</td></tr> <?php	
endif;?>

